import socket
import time
# 创建socket对象
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

# 连接服务器
client_socket.connect(('192.168.215.49', 9999))

with open("test.py", 'rb') as file:
    file_data = file.read()
    print(file_data)
    client_socket.sendall(file_data)
    time.sleep(10)
client_socket.close()
while True:
    pass
# print("test")